from class1 import first
class second(first):   # 继承上一个模块 实例data还是可以用  函数disss被代替,因为用的是class sencond
    def disss(self):   # 相当于在sencond中定制了这个函数
        print("我是:%s" % self.data)
class third(second):
    def __init__(self,value):
        self.data = value
    def __add__(self, other):
        return third(self.data + other)
    def __str__(self):
        return "[third:%s]" % self.data
    def mula(self,other):
        self.data *= other
a = third('abc')
a.disss()
print(a)
print('-----------------------------------------')
b = a + "xyz"
b.disss()
print(b)
print('-----------------------------------------')
a.mula(3)
print(a)